﻿<%@ Page Language="C#" %>
<%@ Import Namespace="TalentPools.Model" %>
<%@ Import Namespace="TalentPools.BLL" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            dlHunt.DataSource = new SearchResumeManager().GetHeadHuntPersonTop();
            dlHunt.DataBind();
        }
    }
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
    body
    {
        font:12px;
        margin:0px;
        padding:0px;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 960px; height: auto; margin: 0px auto; background-color: #fff">
        <div id="head" style="width: 100%; height: 150px; background-color: #124409; border: 0px none;
            margin: 0px;">
            <strong>head</strong></div>
        <div id="left" style="float: left; width: 180px; height: 500px; border: 0px none;
            background-color: #557891">
            <strong>left</strong></div>
        <div id="right" style="float: right; width: 770px; margin-left: 10px; height: 500px;
            border: 0px none; background-color: #fff;">
            <div style="width:80%;height:30px; margin-top:5px; font:14px;background-color:blue; text-indent:一个单元; text-align:left; float:left;">
            最新优秀人才
            </div>
            <div style="width:20%;height:30px; margin-top:5px; font:14px;background-color:blue;text-align:right; float:right;">
            <a href="HuntSearch.aspx" style=" color:red; text-decoration:none;">查看更多</a>
            </div>
            <asp:DataList ID="dlHunt" runat="server" GridLines="Horizontal" 
                BorderStyle="Dashed" DataKeyField="Id">
                <HeaderStyle BorderStyle="Dashed" BorderWidth="1px" Font-Bold="True" Font-Size="13pt"
                    Height="20px" HorizontalAlign="Center" VerticalAlign="Middle" 
                    Width="770px" Wrap="False" />
                <HeaderTemplate>
                    <ul style="list-style: none; letter-spacing: 1px;">
                        <li style="float: left; display:block; width:80px;">编号</li>
                        <li style="float: left; display:block; width:110px;">性别</li>
                        <li style="float: left; display:block; width:110px;">工作时间</li>
                        <li style="float: left; display:block; width:120px;">意向行业</li>
                        <li style="float: left; display:block; width:120px;">意向职位</li>
                        <li style="float: left ;display:block; width:120px;">意向工作地</li>
                    </ul>
                </HeaderTemplate>
                <ItemStyle BorderStyle="Dashed" BorderWidth="1px" Font-Size="12pt" 
                    Height="18px" HorizontalAlign="Center" VerticalAlign="Bottom" Wrap="False" />
                <ItemTemplate>
                <ul style="list-style: none; letter-spacing: 1px;">
                        <li style="float: left; display:block; width:80px;"><a href="Persondetail.aspx?id="+<%#Eval("Id") %>><%#Eval("Id") %></a></li>
                        <li style="float: left; display:block; width:110px;"><%#Eval("sex") %></li>
                        <li style="float: left; display:block; width:110px;"><%#Eval("workYear") %></li>
                        <li style="float: left; display:block; width:120px;"><%#Eval("industry") %></li>
                        <li style="float: left; display:block; width:120px;"><%#Eval("profession") %></li>
                        <li style="float: left ;display:block; width:120px;"><%#Eval("area") %></li>
                    </ul>
                </ItemTemplate>
            </asp:DataList>
        </div>
    </div>
    </form>
</body>
</html>
